package com.github.edu.client.common.constant;

public class CommonConstants {

    public final static String RESOURCE_TYPE_MENU = "menu";

    public final static String RESOURCE_TYPE_BTN = "button";

    public static final Integer EX_TOKEN_ERROR_CODE = 40211;

    // 用户token异常
    public static final Integer EX_USER_INVALID_CODE = 40221;
    // 客户端token异常
    public static final Integer EX_CLIENT_INVALID_CODE = 40331;

    public static final Integer EX_CLIENT_FORBIDDEN_CODE = 40341;

    public static final Integer EX_OTHER_CODE = 500;

    public static final String CONTEXT_KEY_USER_ID = "currentUserId";

    public static final String CONTEXT_KEY_USERNAME = "currentUserName";

    public static final String CONTEXT_KEY_USER_NAME = "currentUser";

    public static final String CONTEXT_KEY_USER_TOKEN = "currentUserToken";

    public static final String CONTEXT_KEY_USER_TYPE="currentUserType";

    public static final String JWT_KEY_USER_ID = "userId";

    public static final String WX_OPENID="openId";

    public static final String WX_IMAGE="wxImage";

    public static final String JWT_KEY_NAME = "name";

    public static final String JWT_KEY_USER_TYPE="userType";

    public static final String JWT_KEY_TIME="time";

    public static final String MENU_TREE="treeMenu";

    //用户密码为空
    public static final Integer LOGIN_PASSWORD_ERROR_CODE=10001;

    //用户登录账号不存在，或者用户账号为空
    public static final Integer LOGIN_USERNAME_ERROR_CODE=10002;

    //用户名或者密码为空
    public static final Integer LOGIN_ERROR_CODE=10003;

    //常规系统异常
    public static final Integer BUSINESS_ERROR_CODE=50001;

}
